package cc.autoapi.pucong.auto.flow.persistence.repository.properties;

import cc.autoapi.pucong.auto.flow.persistence.po.properties.PropertiesInfoPo;

import java.util.List;

/**
 * @author pucong
 * @description 全局参数信息 service接口
 * @create 2024-10-06
 */
public interface PropertiesInfoService {

    void initCache();

    void putCache(PropertiesInfoPo po);

    List<PropertiesInfoPo> list();
    List<PropertiesInfoPo> list(String groupId, String propertiesCode);

    PropertiesInfoPo getById(String id);

    long getCountByCode(String propertiesCode);

    Boolean save(PropertiesInfoPo propertiesInfo);

    long getCountByCode(String id, String propertiesCode);

    Boolean updateById(PropertiesInfoPo propertiesInfoUpdate);

    Boolean removeBatchByIds(List<String> ids);
}
